/*
 * Copyright © 2017-2023 TemplateFactory(xiaoymin@foxmail.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */


package com.github.xiaoymin.template.core;

import com.github.xiaoymin.template.config.Configuration;
import com.github.xiaoymin.template.config.TemplateFactoryConfiguration;

/***
 * 执行的上下文
 * @since template-engine 1.0
 * @author <a href="mailto:xiaoymin@foxmail.com">xiaoymin@foxmail.com</a> 
 * 2020/06/06 15:39
 */
public class TemplateContext {
    
    /**
     * 当前项目的基础目录
     */
    private String baseDir;
    
    private Configuration configuration;
    
    private IntrospectedTable introspectedTable;
    
    private TemplateFactoryConfiguration templateFactoryConfiguration;
    
    public String getBaseDir() {
        return baseDir;
    }
    
    public void setBaseDir(String baseDir) {
        this.baseDir = baseDir;
    }
    
    public IntrospectedTable getIntrospectedTable() {
        return introspectedTable;
    }
    
    public void setIntrospectedTable(IntrospectedTable introspectedTable) {
        this.introspectedTable = introspectedTable;
    }
    
    public TemplateFactoryConfiguration getTemplateFactoryConfiguration() {
        return templateFactoryConfiguration;
    }
    
    public void setTemplateFactoryConfiguration(TemplateFactoryConfiguration templateFactoryConfiguration) {
        this.templateFactoryConfiguration = templateFactoryConfiguration;
    }
    
    public Configuration getConfiguration() {
        return configuration;
    }
    
    public void setConfiguration(Configuration configuration) {
        this.configuration = configuration;
    }
}
